<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="../head.jsp"/>
<title>信息工程学院成教管理系统-修改学籍信息</title>
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="col-md-offset-5 col-md-2">
				<h3 class="text-center">修改学籍信息</h3>
			</div>
		</div>
	
		<div class="row">
			<div class="col-md-offset-2 col-md-6">
				<form class="form-horizontal" method="post" action="alterinfo.do" >
				
					<div class="form-group has-feedback">
						<div class="col-md-8">
							<input type="hidden" class="form-control" name="sid" value="${student.id }" readonly>
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">学号</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="sno"value="${student.sno }">
						</div>
					</div>

					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">姓名</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="sname" value="${student.sname }">
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">性别</label>
						<div class="col-md-8">
							<select name="sex" class="form-control">
								<c:if test="${fn:contains(student.sex,'女')}">
								<option value="女" selected = "selected">女</option>	
								<option value="男">男</option>
								</c:if>
								<c:if test="${fn:contains(student.sex,'男')}">
								<option value="女" >女</option>	
								<option value="男" selected = "selected">男</option>
								</c:if>				
							</select>
						</div>
					</div>
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">身份证号</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="cardid" value="${student.cardid }">
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">所在班级</label>
						<div class="col-md-8">
							<select name="classname" class="form-control">
								<c:forEach items="${clazznames }" var="clazzname">
								<c:if test="${fn:contains(student.clazz.name,clazzname)}">
								<option selected = "selected">${clazzname}</option>
								</c:if>
								<c:if test="${fn:contains(student.clazz.name,clazzname)==false}">
								<option value="${student.clazz.no}">${clazzname}</option>
								</c:if>	
								</c:forEach>				
							</select>
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">所在学院</label>
						<div class="col-md-8">
							<select name="college" class="form-control">
								<c:forEach items="${clazzcolleges }" var="college">
								<c:if test="${fn:contains(student.clazz.college,college)}">
								<option selected = "selected" value="${student.clazz.no}">${college}</option>
								</c:if>
								<c:if test="${fn:contains(student.clazz.college,college)==false}">
								<option value="${student.clazz.no}">${college}</option>
								</c:if>	
								</c:forEach>					
							</select>
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">入学时间</label>
						<div class="col-md-8">
							<div class="input-group date form_date col-md-16" data-date="entertime" data-date-format="dd MM yyyy" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
                    		<input name="entertime" class="form-control" size="32" type="text" value="${student.entertime }" readonly >
                    		<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
							<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                		</div>
						</div>
					</div>
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">预计毕业时间</label>
						<div class="col-md-8">
							<div class="input-group date form_date col-md-16" data-date="" data-date-format="dd MM yyyy" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
                    		<input name="gradtime" class="form-control" size="32" type="text" value="${student.gradtime }" readonly >
                    		<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
							<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                		</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-offset-6 col-md-4">
							<button type="submit" class="btn btn-default btn-primary btn-block">确认修改</button>
						</div>
					</div>
					
				</form>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	$('.form_date').datetimepicker({
        language:  'zh-CN',
        format:'yyyy-MM-dd',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0
    });
</script>
<script src="<%=request.getContextPath()%>/js/jquery.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/queryClass.js" type="text/javascript" ></script>
</body>
</html>
